/*
 * @Description: 星查查各个首页相关
 * @Autor: xinsang
 * @Date: 2020-12-07 19:08:37
 * @LastEditors: zhangqj
 * @LastEditTime: 2021-01-26 16:44:15
 */
import request from 'common/fetch'

// 星查查首页-GMV
export const homeGmv = data => {
  return request({
    url: '/kunheng-live-data/home/gmv',
    method: 'GET',
    params: data
  })
}

// 星查查首页-统计值(入驻商家,入驻主播)
export const tenantStatistics = data => {
  return request({
    url: '/kunheng-business/user-identity-verification/statistics',
    method: 'GET',
    params: data
  })
}

// 推荐标签列表
export const commRecommendTagList = data => {
  return request({
    url: '/kunheng-business/comm-recommend-tag/list',
    method: 'GET',
    params: data
  })
}

// 首页-精选主播活动
export const recommendAncActivity = data => {
  return request({
    url: '/kunheng-business/hj/home/recommend/anc-activity',
    method: 'GET',
    params: data
  })
}

// 首页-商家专场活动
export const recommendBusActivity = data => {
  return request({
    url: '/kunheng-business/hj/home/recommend/bus-activity',
    method: 'GET',
    params: data
  })
}

// 首页-主播推荐
export const homeRecommendAnc = data => {
  return request({
    url: '/kunheng-live-data/anchor/recommend/home',
    method: 'GET',
    params: data
  })
}

// 首页-热门主播
export const homeAnchorHot = data => {
  return request({
    url: '/kunheng-live-data/home/anchor-hot',
    method: 'GET',
    params: data
  })
}

// 首页-商品推荐
export const homeRecommendGoods = data => {
  return request({
    url: '/kunheng-business/hj/home/recommend/goods',
    method: 'GET',
    params: data
  })
}

// 首页-热门商家列表
export const hjRecommendBusiness = data => {
  return request({
    url: '/kunheng-business/comm-recommend/hj-recommend-business',
    method: 'GET',
    params: data
  })
}

// 首页-热门商品
export const homeGoodsHot = data => {
  return request({
    url: '/kunheng-live-data/home/goods-hot',
    method: 'GET',
    params: data
  })
}

// 商家首页-主播推荐
export const busHomeAnchor = data => {
  return request({
    url: '/kunheng-live-data/anchor/recommend/bus-home',
    method: 'GET',
    params: data
  })
}

// 首页-热门机构
export const homeOrganHot = data => {
  return request({
    url: '/kunheng-live-data/home/organ-hot',
    method: 'GET',
    params: data
  })
}

// 商家首页-机构推荐
export const busHomeOrgan = data => {
  return request({
    url: '/kunheng-business/recommend/list/bus-home/organ',
    method: 'GET',
    params: data
  })
}

// 数据中心首页
export const homeAnalyse = data => {
  return request({
    url: '/kunheng-live-data/home/analyse',
    method: 'GET',
    params: data
  })
}

// 首页/商家/主播/数据中心 baner 广告
export const indexBannerAdvertise = data => {
  return request({
    url: '/kunheng-admin/comm-show-manage/index-banner-advertise',
    method: 'GET',
    params: data
  })
}

// 主播首页/商品推荐
export const anchorRecommendGoods = data => {
  return request({
    url: '/kunheng-business/bus-goods/hj-recommend-goods',
    method: 'GET',
    params: data
  })
}

// 数据中心首页/主播数量
export const homeCountAnchor = data => {
  return request({
    url: '/kunheng-live-data/home/count/anchor',
    method: 'GET',
    params: data
  })
}

// 数据中心首页/商品数量
export const homeCountGoods = data => {
  return request({
    url: '/kunheng-live-data/home/count/goods',
    method: 'GET',
    params: data
  })
}
// 数据中心首页/商品数量
export const homeGoodsTop = data => {
  return request({
    url: '/kunheng-live-data/home/goods-top',
    method: 'GET',
    params: data
  })
}
// 数据中心首页/平台数据
export const homePlatformData = data => {
  return request({
    url: '/kunheng-live-data/hj-platform-data/get',
    method: 'GET',
    params: data
  })
}

// 当前会员信息
export const memberCurrent = (data) => {
  return request({
    url: '/kunheng-business/tenant-member/member-current',
    method: 'GET',
    params: data
  })
}

// 查看当前登录人认证信息
export const findIdentityVerification = data => {
  return request({
    url:
      '/kunheng-business/user-identity-verification/find-identity-verification',
    method: 'GET',
    params: data
  })
}
